From: Florian Müllner Date: Sat, 21 Jul 2018 03:20:35 +0000 (+0200) Subject: switcherPopup: Avoid unnecessary animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~70 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=12ec5d1cbec367835f356b84c79ea9131deecdb4;p=gnome-shell.git switcherPopup: Avoid unnecessary animation Ever since commit 28bb0c1fb2, the popup's actual visibility has been controlled by its :opacity property, not :visible. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654 --- diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 9b8cdd617..ec5bbaae9 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -283,7 +283,7 @@ var SwitcherPopup = GObject.registerClass({ fadeAndDestroy() { this._popModal(); - if (this.visible) { + if (this.opacity > 0) { Tweener.addTween(this, { opacity: 0, time: POPUP_FADE_OUT_TIME / 1000,